import request from '@/utils/request'

// 商户接口

// 获取商户列表
export function getConsultingList(params) {
  return request({
    url: '/lctb_ckf/smerchant/consultingList',
    method: 'get',
    params,
    hideloading: true
  })
}

// 获取商户详情
export function getConsultingDetail(params) {
  return request({
    url: '/lctb_ckf/smerchant/myInfo',
    method: 'get',
    params,
    hideloading: true
  })
}

// 提交商户添加申请
export function addConsulting(params) {
  return request({
    url: '/lctb_ckf/smerchant/consulting',
    method: 'post',
    data: params,
    hideloading: true
  })
}

// 获取消息列表
export function getMsg(params) {
  return request({
    url: '/lctb_ckf/msg/msgList',
    method: 'get',
    params,
    hideloading: true
  })
}

// 提交消息
export function addMsg(params) {
  return request({
    url: '/lctb_ckf/msg/addMsg',
    method: 'post',
    data: params,
    hideloading: true
  })
}

// 获取产业列表
export function getIndustryList(params) {
  return request({
    url: '/lctb_ckf/files/dict/ckf_industry',
    method: 'get',
    params,
    hideloading: true
  })
}
